import React, {Component} from "react";
import {inject, observer} from "mobx-react";
import store from "../../store";
import AdminHome from "./admin";
import UserHome from "./user";


export default @inject('store') @observer
class Home extends Component {
    render() {
        return <>
            {store.user.user ?
                store.user.user.authorization === 255 ?
                    <AdminHome/> : <UserHome/>
                : null}
        </>
    }
}